<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
jimport('mylibs.function');
jimport('mylibs.globalModel');

$globalModel = new globalModel();
?> 

<?php foreach ($list as $item) :  ?>
    <?php $link = 'index.php?option=com_content&view=article&id=' . $item->id . '&section_id=' . $item->sectionid . '&category_id=' . $item->catid . '&Itemid=37&emulate=1'; ?>
    <div class="w285 m10b">
        <p>
            <b class="organ_text"><a href="<?php echo $link; //$item->link; ?>"><?php echo $item->text; ?></a></b>&nbsp;
            <span class="gray_text">(<?php echo $item->modified; ?>̣)</span>
        </p>
        <?php echo mb_substrws(strip_tags($item->introtext), $link); ?><!-- GET the format in Library function-->
    </div>
<?php endforeach; ?>					
